# ==============================================================================
# Run_All.R
# ==============================================================================
#
# Replication script for:
#
#   Atsusaka, Yuki; Holbrook, Jordan, 2026,
#   "Archive: A database of tabulated results from American ranked-choice
#    voting elections",
#   https://doi.org/10.7910/DVN/RBWU92, Harvard Dataverse, V1,
#   UNF:6:AMPd4kbOfRs4ku2sJUB9CA== [fileUNF]
#
# Paper website: www.archive-rcv.com
#
# PURPOSE:
#   This script reproduces all figures and tables presented in the paper.
#   It sequentially executes each individual script. All outputs are written
#   to the same directory as the scripts and input data.
#
# SCRIPTS EXECUTED:
#   1. Figure_4.R  - Coverage of Archive over time (PDF)
#   2. Figure_5.R  - Validation against official Minneapolis results (PDF)
#   3. Figure_6.R  - Comparison of winning margins (PDF)
#   4. Table_3.R   - Data validation summary statistics (text)
#   5. Table_4.R   - Data quality checks (text)
#
# USAGE:
#   Run from the replication_package directory:
#     Rscript Run_All.R
#
# REQUIREMENTS:
#   - R packages: tidyverse, ggpubr, readxl, kableExtra
#   - All input data files in the same directory as this script
#
# SESSION INFORMATION
# > sessionInfo()
# R version 4.4.1 (2024-06-14 ucrt)
# Platform: x86_64-w64-mingw32/x64
# Running under: Windows 11 x64 (build 26200)
#
# Matrix products: default
#
#
# locale:
#   [1] LC_COLLATE=English_United States.utf8
# [2] LC_CTYPE=English_United States.utf8
# [3] LC_MONETARY=English_United States.utf8
# [4] LC_NUMERIC=C
# [5] LC_TIME=English_United States.utf8
#
# time zone: America/Chicago
# tzcode source: internal
#
# attached base packages:
#   [1] stats     graphics  grDevices utils     datasets  methods
# [7] base
#
# loaded via a namespace (and not attached):
#   [1] compiler_4.4.1    tools_4.4.1       rstudioapi_0.16.0
#
# ==============================================================================